package Job04.Student;

import Job04.Person.Person;

public class Student extends Person {
    private int test;
    private double money;

    public int getTest() {
        return test;
    }
    public void setTest(int test) {
        this.test = test;
    }
    public double getMoney() {
        return money;
    }
    public void setMoney(double money) {
        this.money = money;
    }

    public Student(int id, String name, String job, int test, double money) {
        super(id, name, job);
        this.test = test;
        this.money = money;
    }

    public Student() {
    }

    @Override
    public void talk() {
        System.out.println("学生:姓名-" +this.getName()+ "  职位-" +this.getJob()+ "  学费-" +this.getMoney());
    }
}
